fetch('/a?id=1').then((res)=>{
    console.log(res)
})


window.performance.mark('time-start')

fetch('/b?id=2').then(res => {
    window.performance.mark('time-end')
    window.performance.measure('record-time', 'time-start', 'time-end')
    console.log('time-start', window.performance.getEntriesByName('time-start'))
    console.log('time-end', window.performance.getEntriesByName('time-end'))
    console.log('record-time', window.performance.getEntriesByName('record-time'))
})



